package com.qfedu.meidijiaju.controller;


import com.qfedu.meidijiaju.common.ResponseData;
import com.qfedu.meidijiaju.entity.CommentsYxy;
import com.qfedu.meidijiaju.service.CommentsYxyService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author meidimeiju
 * @since 2022-10-15
 */
@Api(tags = "10.16测试添加评论,谨慎添加，一次添加16000条,每一条评论都是找随机帖子添加！！！")
@RestController
@RequestMapping("/meidijiaju/comments-yxy")
public class CommentsYxyController {

    @Autowired
    private CommentsYxyService commentsYxyService;

    @ApiOperation(value = "10.16添加评论测试(慎点！！！一次添加16000条)")
    @RequestMapping(value = "/addComments",method = RequestMethod.GET)
    public ResponseData<List<CommentsYxy>> addComments(){

        return commentsYxyService.addComments();
    }

}

